package com.kaifamiao.array;

public class BitTest {

	public static void main(String[] args) {
		
		int a = 0b00000000_00000000_00000000_00000101; // 5
		int b = 0b00000000_00000000_00000000_00000111; // 7
		
		System.out.println( a + " , " + b );
		
		a ^= b ; // a = a ^ b ; // 按位异或
		//a : 0b00000000_00000000_00000000_00000010
		//b : 0b00000000_00000000_00000000_00000111
		b ^= a ;// b = a ^ b ;
		//b : 0b00000000_00000000_00000000_00000101
		//a : 0b00000000_00000000_00000000_00000010
		a ^= b ; //a = a ^ b ;
		
		System.out.println( a + " , " + b );

	}

}
